'use strict'

const { Controller } = require('egg')

class HomeController extends Controller {
  async index() {
    const { ctx, service } = this
    ctx.body = await service.index.find('wivwiv')
  }

  async create() {
    const { ctx, service } = this
    ctx.body = 'create'
  }

  async update() {
    const { ctx, service } = this
    ctx.body = 'update'
  }

  async destroy() {
    const { ctx, service } = this
    ctx.body = 'destroy'
  }
}

module.exports = HomeController
